﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NPC模块结构
{
    enum NPCType
    {
        Task,
        Shop,
        BlackSmith
    }
    abstract class NPC
    {
        private string _name;
        private NPCType _NPCType;

        public string Name { get => _name; set => _name = value; }
        public NPCType NPCType { get => _NPCType; set => _NPCType = value; }

        public NPC(string name , NPCType npcType)
        {
            this.Name = name;
            this.NPCType = npcType;
        }

        public abstract void Speak();
    }
}
